import filepreview from '../packages/filepreview'
const components = [
  filepreview
]
const install = function (Vue) {
    if (install.installedESLint) return
    components.map(component => Vue.component(component.name,component))
}

if(typeof window !== 'undefined' && window.Vue){
    install(window.Vue)
}

export default {
    install,
    filepreview
}
